package com.dv.driverless.domain;

import java.util.Date;

import com.dv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dv.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 车辆信息对象 basic_vehicle
 *
 * @author ruoyi
 * @date 2023-04-13
 */
public class BasicVehicle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 车辆运输单位id */
    @Excel(name = "车辆运输单位id")
    private Long departmentId;

    /** 车辆名 */
    @Excel(name = "车辆名")
    private String fleetName;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String licenseNumber;

    /** 有无鞍座 [0:有 1:无] */
    @Excel(name = "有无鞍座")
    private Integer hasSaddle;

    /** 额定载重 [单位 吨] */
    @Excel(name = "额定载重 [单位 吨]")
    private Integer loadCapacity;

    /** 状态 [0正常 1停用] */
    @Excel(name = "状态 [0正常 1停用]")
    private String status;

    /** 删除标志*/
    private String delFlag;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartmentId(Long departmentId)
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId()
    {
        return departmentId;
    }
    public void setFleetName(String fleetName)
    {
        this.fleetName = fleetName;
    }

    public String getFleetName()
    {
        return fleetName;
    }
    public void setLicenseNumber(String licenseNumber)
    {
        this.licenseNumber = licenseNumber;
    }

    public String getLicenseNumber()
    {
        return licenseNumber;
    }
    public void setHasSaddle(Integer hasSaddle)
    {
        this.hasSaddle = hasSaddle;
    }

    public Integer getHasSaddle()
    {
        return hasSaddle;
    }
    public void setLoadCapacity(Integer loadCapacity)
    {
        this.loadCapacity = loadCapacity;
    }

    public Integer getLoadCapacity()
    {
        return loadCapacity;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("departmentId", getDepartmentId())
                .append("fleetName", getFleetName())
                .append("licenseNumber", getLicenseNumber())
                .append("hasSaddle", getHasSaddle())
                .append("loadCapacity", getLoadCapacity())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .toString();
    }
}
